package top.mccat.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import top.mccat.common.annotation.Excel;
import top.mccat.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 employee_vacation
 * 
 * @author ruoyi
 * @date 2022-03-30
 */
public class EmployeeVacation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id，对应sys_user表的user_id */
    @Excel(name = "用户id")
    private Long userId;

    /** 请假开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "请假开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date vacationStartDate;

    /** 请假结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "请假结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date vacationEndDate;

    /** 请假审批状态，默认0为未审批，1为已审批 */
    @Excel(name = "请假审批状态", readConverterExp = "0=未审批,1=已审批")
    private String status;

    private Integer display;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setVacationStartDate(Date vacationStartDate) 
    {
        this.vacationStartDate = vacationStartDate;
    }

    public Date getVacationStartDate() 
    {
        return vacationStartDate;
    }
    public void setVacationEndDate(Date vacationEndDate) 
    {
        this.vacationEndDate = vacationEndDate;
    }

    public Date getVacationEndDate() 
    {
        return vacationEndDate;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public Integer getDisplay() {
        return display;
    }

    public void setDisplay(Integer display) {
        this.display = display;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("vacationStartDate", getVacationStartDate())
            .append("vacationEndDate", getVacationEndDate())
            .append("status", getStatus())
            .append("display",getDisplay())
            .toString();
    }
}
